import payBalanceApi from "@/api/declaration/pay/payBalanceApi"
import httpRequest from "@/config/axios/httpRequest"
import { PayWalletUserReqModel } from "@/models/pay/payWalletModel"

/** 查询用户钱包详情 */
export const getWallet = async (params: PayWalletUserReqModel) => {
  return await httpRequest.get(payBalanceApi.GetWallet, { params })
}

/** 查询会员钱包列表 */
export const getWalletPage = async (params: any) => {
  return await httpRequest.get(payBalanceApi.GetWalletPage, { params })
}

/** 修改会员钱包余额 */
export const updateWalletBalance = async (data: any) => {
  return await httpRequest.put(payBalanceApi.UpdateWalletBalance, data)
}
